package br.ufrn.sipac.patrimonio.coletor;

import br.ufrn.sipac.patrimonio.coletor.controller.MainController;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.TextView;

/**
 * Activity padrão para encaminhamento de exceções associadas a comportamento
 * inesperado do sistema.
 * 
 * @author Giuliana Silva Bezerra
 * 
 */
public class ComportamentoInesperadoActivity extends Activity {
	public TextView stacktrace;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_comportamento_inesperado);

		// Mapear componentes
		stacktrace = (TextView) findViewById(R.id.textView1);
		stacktrace.setText(MainController.getStacktrace());
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.comportamento_inesperado, menu);
		return true;
	}

}
